From: George Dunlap Date: Wed, 27 Jun 2012 16:50:10 +0000 (+0100) Subject: xen,pod: Cosmetic code motion X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8281 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6f372739cb383fb3ac0fcf0897bdaa89eacdf8f1;p=xen.git xen,pod: Cosmetic code motion No point in doing the assignment if we're just going to crash anyway. Signed-off-by: George Dunlap --- diff --git a/xen/arch/x86/mm/p2m-pod.c b/xen/arch/x86/mm/p2m-pod.c index c0fe224d78..19ccc3b745 100644 --- a/xen/arch/x86/mm/p2m-pod.c +++ b/xen/arch/x86/mm/p2m-pod.c @@ -1022,13 +1022,13 @@ p2m_pod_demand_populate(struct p2m_domain *p2m, unsigned long gfn, p2m_pod_emergency_sweep(p2m); } + if ( p2m->pod.count == 0 ) + goto out_of_memory; + /* Keep track of the highest gfn demand-populated by a guest fault */ if ( gfn > p2m->pod.max_guest ) p2m->pod.max_guest = gfn; - if ( p2m->pod.count == 0 ) - goto out_of_memory; - /* Get a page f/ the cache. A NULL return value indicates that the * 2-meg range should be marked singleton PoD, and retried */ if ( (p = p2m_pod_cache_get(p2m, order)) == NULL )